<div class="content">
  <h1>添加新文章</h1>

  <% form_for([:admin , @web] ,:url => admin_webs_path , :html=>{:class => "form"}) do |f| %>
    <%= f.error_messages %>

    <table class="table">
      <tr class="odd">
        <td width="60px">URL名称</td>
        <td width="200px">    <%= f.text_field :name%>最好是数字或英文或两者组合</td>
      </tr>
      <tr class="odd">
        <td width="60px">标题</td>
        <td width="200px">    <%= f.text_field :title%>最好是数字或英文或两者组合</td>
      </tr>
      <tr class="odd">
        <td width="60px">分类</td>
        <td width="200px">    <%= f.text_field :sort_name%>最好是数字或英文或两者组合</td>
      </tr>
      <tr class="odd">
        <td width="60px">排序</td>
        <td width="200px">    <%= f.text_field :sort%>最好是数字或英文或两者组合</td>
      </tr>
      <tr>
        <td width="60px">内容</td>
        <td width="200px">
  <%#= fckeditor_textarea("web", "body", :toolbarSet => 'Simple', :height => '600px',:width => '600px') %>
          <%= f.text_area :body  ,:size => "80x20"%>
        </td>
        <td width=""> </td>
      </tr>
      <tr>
        <td width="60px"></td>
        <td width="200px">   <%= f.submit '提交'  ,:class => "button" %></td>
        <td width=""> </td>
      </tr>
    </table>
  <% end %>

  <%= link_to '返回', admin_webs_path %>
</div>